.class public Lcom/inmobi/androidsdk/IMAdInterstitial;
.super Ljava/lang/Object;
.source "IMAdInterstitial.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/inmobi/androidsdk/IMAdInterstitial$b;,
        Lcom/inmobi/androidsdk/IMAdInterstitial$a;,
        Lcom/inmobi/androidsdk/IMAdInterstitial$State;,
        Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;
    }
.end annotation


# instance fields
.field a:J

.field b:Z

.field private c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

.field private d:Lcom/inmobi/androidsdk/IMAdRequest;

.field private e:Landroid/app/Activity;

.field private f:Ljava/lang/String;

.field private g:J

.field private h:Lcom/inmobi/androidsdk/IMAdInterstitialListener;

.field private i:Ljava/lang/String;

.field private j:J

.field private k:J

.field private l:Lcom/inmobi/androidsdk/impl/UserInfo;

.field private m:Lcom/inmobi/re/container/IMWebView;

.field private n:Ljava/lang/String;

.field private o:Ljava/lang/String;

.field private p:Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;

.field private q:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

.field private r:Z

.field private s:Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;

.field private t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

.field private u:Lcom/inmobi/re/container/IMWebView$IMWebViewListener;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Ljava/lang/String;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 141
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 88
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->INIT:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    .line 93
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    .line 114
    const-string v0, "http://i.w.inmobi.com/showad.asm"

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->o:Ljava/lang/String;

    .line 123
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;->AD_NETWORK:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->q:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    .line 215
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->a:J

    .line 529
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->b:Z

    .line 616
    new-instance v0, Lcom/inmobi/androidsdk/f;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/f;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->s:Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;

    .line 872
    new-instance v0, Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    .line 874
    new-instance v0, Lcom/inmobi/androidsdk/e;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/e;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->u:Lcom/inmobi/re/container/IMWebView$IMWebViewListener;

    .line 142
    invoke-direct {p0, p1, p2}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 143
    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Ljava/lang/String;J)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 163
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 88
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->INIT:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    .line 93
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    .line 114
    const-string v0, "http://i.w.inmobi.com/showad.asm"

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->o:Ljava/lang/String;

    .line 123
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;->AD_NETWORK:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->q:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    .line 215
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->a:J

    .line 529
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->b:Z

    .line 616
    new-instance v0, Lcom/inmobi/androidsdk/f;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/f;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->s:Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;

    .line 872
    new-instance v0, Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    .line 874
    new-instance v0, Lcom/inmobi/androidsdk/e;

    invoke-direct {v0, p0}, Lcom/inmobi/androidsdk/e;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;)V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->u:Lcom/inmobi/re/container/IMWebView$IMWebViewListener;

    .line 164
    iput-wide p3, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    .line 165
    invoke-direct {p0, p1, p2}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 166
    return-void
.end method

.method static synthetic a(Lcom/inmobi/androidsdk/IMAdInterstitial;Lcom/inmobi/androidsdk/IMAdInterstitial$State;)Lcom/inmobi/androidsdk/IMAdInterstitial$State;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    return-object p1
.end method

.method static synthetic a(Lcom/inmobi/androidsdk/IMAdInterstitial;)Lcom/inmobi/androidsdk/IMAdInterstitialListener;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->h:Lcom/inmobi/androidsdk/IMAdInterstitialListener;

    return-object v0
.end method

.method static synthetic a(Lcom/inmobi/androidsdk/IMAdInterstitial;Lcom/inmobi/re/container/IMWebView;)Lcom/inmobi/re/container/IMWebView;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    return-object p1
.end method

.method static synthetic a(Lcom/inmobi/androidsdk/IMAdInterstitial;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->i:Ljava/lang/String;

    return-object p1
.end method

.method private a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 557
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->h:Lcom/inmobi/androidsdk/IMAdInterstitialListener;

    if-nez v0, :cond_0

    .line 614
    :goto_0
    return-void

    .line 561
    :cond_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    new-instance v1, Lcom/inmobi/androidsdk/IMAdInterstitial$c;

    invoke-direct {v1, p0, p1, p2}, Lcom/inmobi/androidsdk/IMAdInterstitial$c;-><init>(Lcom/inmobi/androidsdk/IMAdInterstitial;ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method private a(Landroid/app/Activity;Ljava/lang/String;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 169
    if-nez p1, :cond_0

    .line 170
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "Activity cannot be null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 175
    :cond_0
    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getUserAgent(Landroid/content/Context;)Ljava/lang/String;

    .line 178
    :try_start_0
    invoke-static {p1}, Lcom/inmobi/androidsdk/impl/SDKUtil;->validateAdConfiguration(Landroid/content/Context;)V
    :try_end_0
    .catch Lcom/inmobi/androidsdk/impl/ConfigException; {:try_start_0 .. :try_end_0} :catch_0

    .line 186
    :goto_0
    invoke-static {p2}, Lcom/inmobi/androidsdk/impl/SDKUtil;->validateAppID(Ljava/lang/String;)V

    .line 189
    invoke-static {p1}, Lcom/inmobi/androidsdk/impl/SDKUtil;->getRootActivity(Landroid/app/Activity;)Landroid/app/Activity;

    move-result-object v0

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    .line 192
    const-class v0, Lcom/inmobi/androidsdk/impl/imai/IMAIController;

    invoke-static {v0}, Lcom/inmobi/re/container/IMWebView;->setIMAIController(Ljava/lang/Class;)V

    .line 194
    :try_start_1
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/commons/uid/UIDHelper;->getAndroidId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 195
    const-string v1, "InMobiAndroidSDK_3.7.0"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Publisher device Id is "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-static {v0}, Lcom/inmobi/commons/uid/UIDHelper;->getODIN1(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 201
    :goto_1
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-static {v0}, Lcom/inmobi/commons/internal/ThinICE;->start(Landroid/app/Activity;)V

    .line 202
    iput-object p2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->f:Ljava/lang/String;

    .line 203
    invoke-direct {p0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->b()V

    .line 204
    return-void

    .line 179
    :catch_0
    move-exception v0

    .line 180
    const-string v1, "InMobiAndroidSDK_3.7.0"

    const-string v2, "IMConfigException occured while initializing interstitial while validating adConfig"

    invoke-static {v1, v2, v0}, Lcom/inmobi/commons/internal/Log;->internal(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 197
    :catch_1
    move-exception v0

    .line 199
    const-string v1, "InMobiAndroidSDK_3.7.0"

    const-string v2, "Cannot get publisher device id"

    invoke-static {v1, v2, v0}, Lcom/inmobi/commons/internal/Log;->internal(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_1
.end method

.method static synthetic a(Lcom/inmobi/androidsdk/IMAdInterstitial;ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 48
    invoke-direct {p0, p1, p2}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 6
    .parameter

    .prologue
    const/4 v4, 0x0

    .line 674
    if-eqz p1, :cond_1

    .line 675
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x8

    if-gt v0, v1, :cond_0

    .line 677
    const-string v0, "%"

    const-string v1, "%25"

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    .line 679
    :cond_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    const/16 v2, 0x12f

    invoke-virtual {v1, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/inmobi/re/container/IMWebView;->requestOnPageFinishedCallback(Landroid/os/Message;)V

    .line 682
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->j:J

    .line 683
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    const/16 v1, 0x133

    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/inmobi/androidsdk/bootstrapper/Initializer;->getConfigParams(Landroid/content/Context;)Lcom/inmobi/androidsdk/bootstrapper/ConfigParams;

    move-result-object v2

    invoke-virtual {v2}, Lcom/inmobi/androidsdk/bootstrapper/ConfigParams;->getRenderTimeOut()I

    move-result v2

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->sendEmptyMessageDelayed(IJ)Z

    .line 687
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    const-string v1, ""

    const-string v3, "text/html"

    move-object v2, p1

    move-object v5, v4

    invoke-virtual/range {v0 .. v5}, Lcom/inmobi/re/container/IMWebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 696
    :goto_0
    return-void

    .line 690
    :cond_1
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->INIT:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    .line 691
    const-string v0, "InMobiAndroidSDK_3.7.0"

    const-string v1, "Cannot load Ad. Invalid Ad Response"

    invoke-static {v0, v1}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    .line 693
    const/16 v0, 0x65

    sget-object v1, Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;->INTERNAL_ERROR:Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;

    invoke-direct {p0, v0, v1}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    goto :goto_0
.end method

.method private a()Z
    .locals 1

    .prologue
    .line 331
    invoke-static {}, Lcom/inmobi/androidsdk/impl/SDKUtil;->getQAMode()Z

    move-result v0

    if-nez v0, :cond_0

    .line 332
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->f:Ljava/lang/String;

    invoke-static {v0}, Lcom/inmobi/commons/internal/InternalSDKUtil;->validateAppId(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 333
    const/4 v0, 0x0

    .line 337
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method static synthetic b(Lcom/inmobi/androidsdk/IMAdInterstitial;)Lcom/inmobi/androidsdk/IMAdInterstitial$a;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    return-object v0
.end method

.method static synthetic b(Lcom/inmobi/androidsdk/IMAdInterstitial;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->n:Ljava/lang/String;

    return-object p1
.end method

.method private b()V
    .locals 5

    .prologue
    .line 341
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 345
    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    if-nez v1, :cond_0

    .line 346
    new-instance v1, Lcom/inmobi/androidsdk/impl/UserInfo;

    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-direct {v1, v2}, Lcom/inmobi/androidsdk/impl/UserInfo;-><init>(Landroid/app/Activity;)V

    iput-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    .line 349
    new-instance v1, Landroid/util/DisplayMetrics;

    invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V

    .line 350
    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v2}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v2

    invoke-interface {v2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 354
    iget v1, v1, Landroid/util/DisplayMetrics;->density:F

    .line 355
    invoke-static {v0}, Lcom/inmobi/re/container/WrapperFunctions;->getDisplayWidth(Landroid/view/Display;)I

    move-result v2

    int-to-float v2, v2

    div-float/2addr v2, v1

    float-to-int v2, v2

    .line 356
    invoke-static {v0}, Lcom/inmobi/re/container/WrapperFunctions;->getDisplayHeight(Landroid/view/Display;)I

    move-result v0

    int-to-float v0, v0

    div-float/2addr v0, v1

    float-to-int v0, v0

    .line 358
    iget-object v3, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    invoke-static {v1}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Lcom/inmobi/androidsdk/impl/UserInfo;->setScreenDensity(Ljava/lang/String;)V

    .line 359
    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "X"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/inmobi/androidsdk/impl/UserInfo;->setScreenSize(Ljava/lang/String;)V

    .line 363
    :try_start_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    invoke-virtual {v0}, Lcom/inmobi/androidsdk/impl/UserInfo;->getPhoneDefaultUserAgent()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 364
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getUserAgent(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/inmobi/androidsdk/impl/UserInfo;->setPhoneDefaultUserAgent(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 373
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->f:Ljava/lang/String;

    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->d:Lcom/inmobi/androidsdk/IMAdRequest;

    invoke-virtual {v0, v1, v2}, Lcom/inmobi/androidsdk/impl/UserInfo;->updateInfo(Ljava/lang/String;Lcom/inmobi/androidsdk/IMAdRequest;)V

    .line 377
    const/16 v0, 0xe

    .line 380
    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->isTablet(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 381
    const/16 v0, 0x11

    .line 383
    :cond_1
    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/inmobi/androidsdk/impl/UserInfo;->setAdUnitSlot(Ljava/lang/String;)V

    .line 384
    iget-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    const-wide/16 v2, -0x1

    cmp-long v0, v0, v2

    if-eqz v0, :cond_2

    .line 385
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    iget-wide v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    invoke-static {v1, v2}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/inmobi/androidsdk/impl/UserInfo;->setSlotId(Ljava/lang/String;)V

    .line 386
    :cond_2
    return-void

    .line 367
    :catch_0
    move-exception v0

    .line 368
    const-string v1, "InMobiAndroidSDK_3.7.0"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Exception occured while setting user agent"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/inmobi/androidsdk/IMAdInterstitial;)J
    .locals 2
    .parameter

    .prologue
    .line 48
    iget-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->k:J

    return-wide v0
.end method

.method static synthetic c(Lcom/inmobi/androidsdk/IMAdInterstitial;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 48
    invoke-direct {p0, p1}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic d(Lcom/inmobi/androidsdk/IMAdInterstitial;)Z
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-boolean v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->r:Z

    return v0
.end method

.method static synthetic e(Lcom/inmobi/androidsdk/IMAdInterstitial;)Landroid/app/Activity;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    return-object v0
.end method

.method static synthetic f(Lcom/inmobi/androidsdk/IMAdInterstitial;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->n:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic g(Lcom/inmobi/androidsdk/IMAdInterstitial;)Lcom/inmobi/re/container/IMWebView;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    return-object v0
.end method

.method static synthetic h(Lcom/inmobi/androidsdk/IMAdInterstitial;)Lcom/inmobi/re/container/IMWebView$IMWebViewListener;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->u:Lcom/inmobi/re/container/IMWebView$IMWebViewListener;

    return-object v0
.end method

.method static synthetic i(Lcom/inmobi/androidsdk/IMAdInterstitial;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->i:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic j(Lcom/inmobi/androidsdk/IMAdInterstitial;)J
    .locals 2
    .parameter

    .prologue
    .line 48
    iget-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->j:J

    return-wide v0
.end method

.method static synthetic k(Lcom/inmobi/androidsdk/IMAdInterstitial;)Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->p:Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;

    return-object v0
.end method

.method private setAdServerUrl(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 313
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->o:Ljava/lang/String;

    .line 314
    return-void
.end method


# virtual methods
.method public destroy()V
    .locals 2

    .prologue
    .line 544
    :try_start_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    if-eqz v0, :cond_0

    .line 545
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    invoke-virtual {v0}, Lcom/inmobi/re/container/IMWebView;->destroy()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 550
    :cond_0
    :goto_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    .line 551
    return-void

    .line 546
    :catch_0
    move-exception v0

    .line 547
    const-string v0, "InMobiAndroidSDK_3.7.0"

    const-string v1, "Unable to destroy webview, or it has been destroyed already."

    invoke-static {v0, v1}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public disableHardwareAcceleration()V
    .locals 1

    .prologue
    .line 534
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->b:Z

    .line 535
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    if-eqz v0, :cond_0

    .line 536
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    invoke-virtual {v0}, Lcom/inmobi/re/container/IMWebView;->disableHardwareAcceleration()V

    .line 537
    :cond_0
    return-void
.end method

.method public getAppId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 468
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->f:Ljava/lang/String;

    return-object v0
.end method

.method public getIMAdInterstitialListener()Lcom/inmobi/androidsdk/IMAdInterstitialListener;
    .locals 1

    .prologue
    .line 429
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->h:Lcom/inmobi/androidsdk/IMAdInterstitialListener;

    return-object v0
.end method

.method public getIMAdRequest()Lcom/inmobi/androidsdk/IMAdRequest;
    .locals 1

    .prologue
    .line 449
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->d:Lcom/inmobi/androidsdk/IMAdRequest;

    return-object v0
.end method

.method public getSlotId()J
    .locals 2

    .prologue
    .line 492
    iget-wide v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    return-wide v0
.end method

.method public getState()Lcom/inmobi/androidsdk/IMAdInterstitial$State;
    .locals 1

    .prologue
    .line 212
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    return-object v0
.end method

.method public loadNewAd()V
    .locals 6

    .prologue
    const/16 v5, 0x65

    .line 226
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/androidsdk/bootstrapper/Initializer;->getConfigParams(Landroid/content/Context;)Lcom/inmobi/androidsdk/bootstrapper/ConfigParams;

    move-result-object v1

    .line 228
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/androidsdk/impl/metric/Logger;->startNewSample(Landroid/content/Context;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->r:Z

    .line 231
    const-string v0, "InMobiAndroidSDK_3.7.0"

    const-string v2, " >>>> Start loading new Interstitial Ad <<<<"

    invoke-static {v0, v2}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    .line 234
    :try_start_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/commons/uid/UIDHelper;->getAndroidId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 235
    const-string v2, "InMobiAndroidSDK_3.7.0"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Publisher device Id is "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {v0}, Lcom/inmobi/commons/uid/UIDHelper;->getODIN1(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 241
    :goto_0
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/inmobi/commons/internal/InternalSDKUtil;->checkNetworkAvailibility(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 243
    sget-object v0, Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;->NETWORK_ERROR:Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;

    invoke-direct {p0, v5, v0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    .line 291
    :goto_1
    return-void

    .line 237
    :catch_0
    move-exception v0

    .line 239
    const-string v2, "InMobiAndroidSDK_3.7.0"

    const-string v3, "Cannot get publisher device id"

    invoke-static {v2, v3, v0}, Lcom/inmobi/commons/internal/Log;->internal(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 247
    :cond_0
    invoke-direct {p0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a()Z

    move-result v0

    if-nez v0, :cond_1

    .line 248
    sget-object v0, Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;->INVALID_REQUEST:Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;

    invoke-direct {p0, v5, v0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    goto :goto_1

    .line 253
    :cond_1
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    sget-object v2, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->LOADING:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    if-ne v0, v2, :cond_2

    .line 254
    sget-object v0, Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;->AD_DOWNLOAD_IN_PROGRESS:Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;

    invoke-direct {p0, v5, v0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    goto :goto_1

    .line 257
    :cond_2
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    sget-object v2, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->ACTIVE:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    if-ne v0, v2, :cond_3

    .line 258
    const-string v0, "InMobiAndroidSDK_3.7.0"

    const-string v1, "Interstitial ad is in ACTIVE state. Try again after sometime."

    invoke-static {v0, v1}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    .line 260
    sget-object v0, Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;->INVALID_REQUEST:Lcom/inmobi/androidsdk/IMAdRequest$ErrorCode;

    invoke-direct {p0, v5, v0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->a(ILcom/inmobi/androidsdk/IMAdRequest$ErrorCode;)V

    goto :goto_1

    .line 265
    :cond_3
    sget-object v0, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->LOADING:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    .line 267
    invoke-direct {p0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->b()V

    .line 269
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->a:J

    .line 271
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->k:J

    .line 272
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    const/16 v2, 0x132

    invoke-virtual {v1}, Lcom/inmobi/androidsdk/bootstrapper/ConfigParams;->getFetchTimeOut()I

    move-result v3

    int-to-long v3, v3

    invoke-virtual {v0, v2, v3, v4}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->sendEmptyMessageDelayed(IJ)Z

    .line 276
    new-instance v0, Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;

    invoke-direct {v0}, Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;-><init>()V

    iput-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->p:Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;

    .line 284
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->q:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    sget-object v2, Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;->APP_GALLERY:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    if-ne v0, v2, :cond_4

    .line 285
    invoke-virtual {v1}, Lcom/inmobi/androidsdk/bootstrapper/ConfigParams;->getAppAppGalleryConfigParams()Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;

    move-result-object v0

    invoke-virtual {v0}, Lcom/inmobi/androidsdk/bootstrapper/AppGalleryConfigParams;->getUrl()Ljava/lang/String;

    move-result-object v0

    .line 288
    :goto_2
    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->p:Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;

    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->l:Lcom/inmobi/androidsdk/impl/UserInfo;

    sget-object v3, Lcom/inmobi/androidsdk/impl/net/RequestResponseManager$ActionType;->AdRequest_Interstitial:Lcom/inmobi/androidsdk/impl/net/RequestResponseManager$ActionType;

    iget-object v4, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->s:Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;

    invoke-virtual {v1, v2, v3, v0, v4}, Lcom/inmobi/androidsdk/impl/net/RequestResponseManager;->asyncRequestAd(Lcom/inmobi/androidsdk/impl/UserInfo;Lcom/inmobi/androidsdk/impl/net/RequestResponseManager$ActionType;Ljava/lang/String;Lcom/inmobi/androidsdk/impl/net/HttpRequestCallback;)V

    goto :goto_1

    .line 286
    :cond_4
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->o:Ljava/lang/String;

    goto :goto_2
.end method

.method public loadNewAd(Lcom/inmobi/androidsdk/IMAdRequest;)V
    .locals 0
    .parameter

    .prologue
    .line 303
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->d:Lcom/inmobi/androidsdk/IMAdRequest;

    .line 304
    invoke-virtual {p0}, Lcom/inmobi/androidsdk/IMAdInterstitial;->loadNewAd()V

    .line 305
    return-void
.end method

.method public setAppId(Ljava/lang/String;)V
    .locals 0
    .parameter

    .prologue
    .line 482
    invoke-static {p1}, Lcom/inmobi/androidsdk/impl/SDKUtil;->validateAppID(Ljava/lang/String;)V

    .line 483
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->f:Ljava/lang/String;

    .line 484
    return-void
.end method

.method public setIMAdInterstitialListener(Lcom/inmobi/androidsdk/IMAdInterstitialListener;)V
    .locals 0
    .parameter

    .prologue
    .line 440
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->h:Lcom/inmobi/androidsdk/IMAdInterstitialListener;

    .line 441
    return-void
.end method

.method public setIMAdRequest(Lcom/inmobi/androidsdk/IMAdRequest;)V
    .locals 0
    .parameter

    .prologue
    .line 459
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->d:Lcom/inmobi/androidsdk/IMAdRequest;

    .line 460
    return-void
.end method

.method public setMode(Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;)V
    .locals 0
    .parameter

    .prologue
    .line 506
    iput-object p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->q:Lcom/inmobi/androidsdk/IMAdInterstitial$AdMode;

    .line 507
    return-void
.end method

.method public setSlotId(J)V
    .locals 0
    .parameter

    .prologue
    .line 502
    iput-wide p1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->g:J

    .line 503
    return-void
.end method

.method public show()V
    .locals 3

    .prologue
    .line 397
    :try_start_0
    const-string v0, "InMobiAndroidSDK_3.7.0"

    const-string v1, "Showing the Interstitial Ad. "

    invoke-static {v0, v1}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;)V

    .line 400
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    sget-object v1, Lcom/inmobi/androidsdk/IMAdInterstitial$State;->READY:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    if-eq v0, v1, :cond_1

    .line 401
    new-instance v0, Ljava/lang/IllegalStateException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Interstitial ad is not in the \'READY\' state. Current state: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->c:Lcom/inmobi/androidsdk/IMAdInterstitial$State;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 418
    :catch_0
    move-exception v0

    .line 419
    const-string v1, "InMobiAndroidSDK_3.7.0"

    const-string v2, "Error showing ad "

    invoke-static {v1, v2, v0}, Lcom/inmobi/commons/internal/Log;->debug(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 421
    :cond_0
    :goto_0
    return-void

    .line 405
    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->i:Ljava/lang/String;

    if-eqz v0, :cond_0

    .line 406
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    const/16 v2, 0x130

    invoke-virtual {v1, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/inmobi/re/container/IMWebView;->requestOnInterstitialClosed(Landroid/os/Message;)V

    .line 408
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    iget-object v1, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    const/16 v2, 0x131

    invoke-virtual {v1, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/inmobi/re/container/IMWebView;->requestOnInterstitialShown(Landroid/os/Message;)V

    .line 410
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->m:Lcom/inmobi/re/container/IMWebView;

    iget-object v0, v0, Lcom/inmobi/re/container/IMWebView;->mInterstitialController:Lcom/inmobi/re/container/mraidimpl/MRAIDInterstitialController;

    invoke-virtual {v0}, Lcom/inmobi/re/container/mraidimpl/MRAIDInterstitialController;->changeContentAreaForInterstitials()V

    .line 416
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->e:Landroid/app/Activity;

    invoke-static {v0}, Lcom/inmobi/commons/internal/ThinICE;->start(Landroid/app/Activity;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0
.end method

.method public stopLoading()V
    .locals 3

    .prologue
    const/16 v2, 0x133

    const/16 v1, 0x132

    .line 519
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v1}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->hasMessages(I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 520
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v1}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->removeMessages(I)V

    .line 521
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v1}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->sendEmptyMessage(I)Z

    .line 526
    :cond_0
    :goto_0
    return-void

    .line 522
    :cond_1
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->hasMessages(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 523
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->removeMessages(I)V

    .line 524
    iget-object v0, p0, Lcom/inmobi/androidsdk/IMAdInterstitial;->t:Lcom/inmobi/androidsdk/IMAdInterstitial$a;

    invoke-virtual {v0, v2}, Lcom/inmobi/androidsdk/IMAdInterstitial$a;->sendEmptyMessage(I)Z

    goto :goto_0
.end method
